new Promise((resolve, reject) => {
  resolve('');
})
  .then((_) => {
    // return {
    //   then: (resolve, reject) => {
    //     console.log("ss")
    //     setTimeout(() => {
    //       resolve!("s")
    //       console.log("sss")
    //     }, 2000);
    //   }
    // }
    class Y {
      then = (resolve: any, reject: any) => {
        setTimeout(() => {
          console.log("nihao");
        }, 0);
        resolve("hello")
      };
    }
    return new Y();
  })
  .then((_) => {
    console.log(_);
  });
